<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景图片</title>
    <style>
        div{
            width:200px;
            height:200px;
            background-color:purple;
            /*设置背景图片*/
            background-image:url("../day01/mm1.jpg");
            background-size: 100px 100px;
            /*禁止重复*/
            background-repeat: no-repeat;
            /*设置图片位置*/
            /*background-position: 100px 100px;*/
            background-position: 50% 50%;


        }

    </style>
</head>
<body>
<div>

</div>


</body>
</html>